package j04zuoye.fly;

public class FlyTest {
    public static void main(String[] args) {
        Airplane p1 = new Airplane("播音666",100);

        IFly f1 = p1;
        f1.fly();

        Airplane p2 = (Airplane) f1;
        p2.openDoor();
        p2.closeDoor();
    }
}
